<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="cn.firstsoft.modules.docex.domain.DocexFileSendOpinion" table="docex_fileSendOpinion">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">DOCEX_FILESENDOPINION_SEQ</param>
            </generator>
        </id>
        <many-to-one name="user" class="org.springside.modules.security.domain.User" fetch="select">
            <column name="user_id" />
        </many-to-one>
        
        <property name="opinion" type="string">
            <column name="opinion" length="1000" />
        </property>
        
        <property name="createdate" type="timestamp">
            <column name="createdate" length="23" />
        </property>
         <many-to-one name="docexfile" class="cn.firstsoft.modules.docex.domain.DocexFile" fetch="select">
            <column name="docexFile_id" />
        </many-to-one>
    </class>
</hibernate-mapping>